package com.aidex.system.domain;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;

import com.aidex.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.aidex.common.utils.log.annotation.FieldRemark;
import com.aidex.common.utils.log.annotation.LogField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.aidex.common.annotation.Excel;
/**
 * 运单明细对象 waybill_detail
 * @author wll
 * @email wll
 * @date 2021-10-04
 */
@Data
public class WaybillDetail extends BaseEntity<WaybillDetail>
{
    private static final long serialVersionUID = 1L;

    /** 运单ID */
    @Excel(name = "运单ID")
    private String waybillId;

    /** 货品名 */
    @Excel(name = "货品名")
    @NotBlank(message = "货品名不允许为空")
    private String tradeName;

    /** 货品名关键词 */
    @Excel(name = "货品名关键词")
    @NotBlank(message = "货品名关键词不允许为空")
    private String tradeNameKey;

    /** 货品名所属清单 */
    @Excel(name = "货品名所属清单")
    @NotBlank(message = "货品名所属清单不允许为空")
    private String tradeType;

    /** 货物风险等级 */
    @Excel(name = "货物风险等级")
    @NotBlank(message = "货物风险等级不允许为空")
    private String tradeRiskClassification;

    /** 综合风险等级 */
    @Excel(name = "综合风险等级")
    @NotBlank(message = "综合风险等级不允许为空")
    private String tradeRiskRating;

    public void setWaybillId(String waybillId)
    {
        this.waybillId = waybillId;
    }

    public String getWaybillId()
    {
        return waybillId;
    }

    public void setTradeName(String tradeName) 
    {
        this.tradeName = tradeName;
    }

    public String getTradeName() 
    {
        return tradeName;
    }

    public void setTradeNameKey(String tradeNameKey) 
    {
        this.tradeNameKey = tradeNameKey;
    }

    public String getTradeNameKey() 
    {
        return tradeNameKey;
    }

    public void setTradeType(String tradeType) 
    {
        this.tradeType = tradeType;
    }

    public String getTradeType() 
    {
        return tradeType;
    }

    public void setTradeRiskClassification(String tradeRiskClassification) 
    {
        this.tradeRiskClassification = tradeRiskClassification;
    }

    public String getTradeRiskClassification() 
    {
        return tradeRiskClassification;
    }

    public void setTradeRiskRating(String tradeRiskRating) 
    {
        this.tradeRiskRating = tradeRiskRating;
    }

    public String getTradeRiskRating() 
    {
        return tradeRiskRating;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("waybillId", getWaybillId())
            .append("tradeName", getTradeName())
            .append("tradeNameKey", getTradeNameKey())
            .append("tradeType", getTradeType())
            .append("tradeRiskClassification", getTradeRiskClassification())
            .append("tradeRiskRating", getTradeRiskRating())
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
